package com.iwhalecloud.citybrain.flow.platform.manager.domain.model.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;


@Data
@ApiModel(value = "上传流程模型VO", description = "上传流程模型时的表单+文件VO")
public class ModelUploadDTO {
    /** 模型名称 */
    @NotNull
    private String name;

    /** 模型key */
    @NotNull
    private String key;

    /** 模型描述 */
    private String description;

    /** 应用id */
    @NotNull
    private Integer appId;

    /** 所属业务id */
    private Integer busiId;

    @ApiModelProperty(value = "文件对象", name = "file")
    private MultipartFile file;

    @Override
    public String toString() {
        return "ModelUploadDTO{" +
                "name='" + name + '\'' +
                ", key='" + key + '\'' +
                ", description='" + description + '\'' +
                ", appId=" + appId +
                ", busiId=" + busiId +
                ", file=" + file.getOriginalFilename() +
                '}';
    }
}